/*******************************************************************************
 * Copyright (c) 2008, 2009 Tapestry IDE Developers
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Tapestry IDE Developers - initial API and implementation
 *******************************************************************************/
package com.googlecode.tapestry.ide.core.model;

import java.util.List;

/**
 * The Interface ITapestryContainer.
 */
public interface ITapestryContainer<I extends ITapestryItem> extends
		IModelElement {

	/**
	 * Gets the items.
	 * 
	 * @return the items
	 */
	List<I> getItems();

	/**
	 * Gets the item.
	 * 
	 * @param name
	 *            the name
	 * 
	 * @return the item
	 */
	I getItem(String name);

	/**
	 * Adds the item.
	 * 
	 * @param item
	 *            the item
	 */
	void addItem(I item);

	/**
	 * Removes the item.
	 * 
	 * @param item
	 *            the item
	 * 
	 * @return the i
	 */
	I removeItem(I item);

	/**
	 * Removes the item.
	 * 
	 * @param name
	 *            the name
	 * 
	 * @return the i
	 */
	I removeItem(String name);

}
